import Mock from 'mockjs';
let studentsJson = require('../static/js/json/students.json');
let menuData = require('../static/js/json/menu.json');
let scrollData = require('../static/js/json/scroll.json');

Mock.setup({
  timeout: '200 - 400'
});
Mock.mock('/students', 'post', studentsJson);//模拟ajax请求从文件（上面定义的常量）获得数据
Mock.mock('/menuData', 'post', menuData);
Mock.mock('/scrollData', 'get', scrollData);
